﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class SOP_SendSNSBLL
    {
        #region 私有变量
        private static SOP_SendSNSDAL _dal;
        private static SOP_SendSNSDAL dal
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new SOP_SendSNSDAL();
                }
                return _dal;
            }
        }
        #endregion

        /// <summary>
        /// 手机短信记录
        /// </summary>
        /// <param name="Mobile"></param>
        /// <param name="VerifyCode"></param>
        /// <returns></returns>
        public static int Add(String BossID, String Mobile, String VerifyCode, int SNSType, int Status)
        {
            return dal.Add(BossID, Mobile, VerifyCode, SNSType, Status);
        }

        /// <summary>
        /// 验证验证码
        /// </summary>
        /// <returns>5代表存在</returns>
        public static int VerifyCode(String Mobile, String VerifyCode, out string error)
        {
            return dal.VerifyCode(Mobile, VerifyCode, out error);
        }
    }
}
